package com.his.his_system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.his.his_system.domain.DzmHisBatchesOfInventory;
import com.his.his_system.service.DzmHisBatchesOfInventoryService;
import com.his.his_system.mapper.DzmHisBatchesOfInventoryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
* @author kurit
* @description 针对表【dzm_his_batches_of_inventory(批次库存表)】的数据库操作Service实现
* @createDate 2023-07-13 16:48:35
*/
@Service
public class DzmHisBatchesOfInventoryServiceImpl extends ServiceImpl<DzmHisBatchesOfInventoryMapper, DzmHisBatchesOfInventory>
    implements DzmHisBatchesOfInventoryService{

    @Autowired
    private DzmHisBatchesOfInventoryMapper dzmHisBatchesOfInventoryMapper;
    /**
     * 查询批次库存列表
     *
     * @param dzmHisBatchesOfInventory 批次库存
     * @return 批次库存
     */
    @Override
    public List<DzmHisBatchesOfInventory> selectDzmHisBatchesOfInventoryList(DzmHisBatchesOfInventory dzmHisBatchesOfInventory,String beginBatchesOfInventoryDate,String endBatchesOfInventoryDate)
    {
        return dzmHisBatchesOfInventoryMapper.selectDzmHisBatchesOfInventoryList(dzmHisBatchesOfInventory,beginBatchesOfInventoryDate,endBatchesOfInventoryDate);
    }
    /**
     * 删除批次库存信息
     *
     * @param batchesOfInventoryId 批次库存主键
     * @return 结果
     */
    @Override
    public int deleteDzmHisBatchesOfInventoryByBatchesOfInventoryId(Integer batchesOfInventoryId)
    {
        return dzmHisBatchesOfInventoryMapper.deleteDzmHisBatchesOfInventoryByBatchesOfInventoryId(batchesOfInventoryId);
    }
}




